<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>
<?php

include_once "function_net_pppoe.php";
include_once "function_web_misc.php";

$in_array['Name'] = $_POST['devname'];
$in_array['Enabled'] = $_POST['enabled'];
$in_array['ETH'] = $_POST['sel_dev'];

$in_array['USER'] = $_POST['username'];
$in_array['PASS'] = $_POST['userpass'];

$in_array['Level'] = $_POST['sel_levele'];

$in_array['DEMAND'] = $_POST['DEMAND'];
$in_array['DEFAULTROUTE'] = $_POST['DEFAULTROUTE'];
$in_array['DNSTYPE'] = $_POST['DNSTYPE'];

SetXmlPPPOEDevByName($in_array["Name"],$in_array);

include_once "function_misc_log.php";
logger("Modify", $in_array, "PPPOE");

PrintSuccessPageAndJump("net_dev_pppoe_list.php");

?>
